package com.ply.config;

//import com.ply.interceptor.UserLoginInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author XiaoPan
 * date: 2022/1/9 16:26
 * <p>
 * action:
 */
@Configuration
public class InterceptConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {

//        InterceptorRegistration interceptorRegistration = registry.addInterceptor(new UserLoginInterceptor());
//        interceptorRegistration.addPathPatterns("/user/*");
//        interceptorRegistration.excludePathPatterns("/user/login.do");
    }
}
